#!/bin/bash

# 颜色定义
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'

echo -e "${YELLOW}Initializing test data...${NC}"

# 运行数据库迁移
echo -e "${YELLOW}Running migrations...${NC}"
python manage.py makemigrations
python manage.py migrate

# 初始化测试数据
echo -e "${YELLOW}Creating test users...${NC}"
python manage.py init_test_data

echo -e "${GREEN}Test data initialization completed${NC}" 